//
//  FriendTableViewCell.m
//  SeaChat
//
//  Created by dllo on 16/6/15.
//  Copyright © 2016年 潘强. All rights reserved.
//

#import "FriendTableViewCell.h"

@interface FriendTableViewCell ()



@end


@implementation FriendTableViewCell
-(void)dealloc{
    [_FriendimageView release];
    [_FriendLabel release];

    [super dealloc];
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creaSubView];
    }
    return self;

}
-(void)creaSubView{

    self.FriendimageView = [UIImageView new];
    self.FriendimageView.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.FriendimageView];

    self.FriendLabel = [UILabel new];
    self.FriendLabel.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.FriendLabel];
    

}

-(void)layoutSubviews{
    [super layoutSubviews];
[self.FriendimageView mas_makeConstraints:^(MASConstraintMaker *make) {
    make.left.mas_equalTo(20);
   make.top.mas_equalTo(7);
    make.size.mas_equalTo(CGSizeMake(25, 36));
 }];

    [self.FriendLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(_FriendimageView).offset(40);
        make.top.mas_equalTo(_FriendimageView);
        make.height.mas_equalTo(_FriendimageView);
        make.width.mas_equalTo(_FriendimageView).multipliedBy(9);
    }];
    
    
    

}


@end
